#include "LevelBlock.h"

LevelBlock::LevelBlock()
{
      //ctor
    m_node=0;
    m_entity=0;
    m_position = Ogre::Vector2(0,0);
    m_Yoffset=0.0;
}

LevelBlock::~LevelBlock()
{
    //dtor
}
/** @brief isCrossable
  *
  * @todo: document this function
  */
bool LevelBlock::isCrossable()
{
return m_isCrossable;
}

/** @brief getPosition
  *
  * @todo: document this function
  */
Ogre::Vector2 LevelBlock::getPosition()
{
    return m_position;
}


/** @brief setPosition
  *
  * @todo: document this function
  */
void LevelBlock::setPosition(Ogre::Vector2 _position)
{
    m_position = _position;
    if (m_node)
        m_node->setPosition(Ogre::Vector3(m_position.x,m_Yoffset,m_position.y));
}

/** @brief setNode
  *
  * @todo: document this function
  */
void LevelBlock::setNode(Ogre::SceneNode *_node)
{
    m_node=_node;
}
OBJ_TYPE LevelBlock::getType()
 {

    return OBJ_TYP_OBJECT;
 }
